package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 心跳对象 heart
 *
 * @author wxd
 * @date 2024-08-29
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class Heart extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 设备编号
     */
    @Excel(name = "设备编号")
    private String deviceId;

    /**
     * 心跳时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "心跳时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date heartTime;
}
